package ch02;

class E06_PrecisionTest {
	public static void main(String[] args) {
		float f = 1.2345678901234567890f;
		double d = 1.2345678901234567890;
		float f2 = 0.100000001f;
		double d2 = 0.100000001;
		double d3 = 0.1000000000000001;
		double d4 = 1.2e10;

		System.out.println(f); // 1.2345679 // down to 7 places of decimals
		System.out.println(d); // 1.2345678901234567 // // down to 16 places of decimals
		System.out.println(f2); // 0.1
		System.out.println(d2); // 0.100000001
		System.out.println(d3); // 0.1000000000000001
		System.out.println(d4); // 1.2E10
	}
}